package tech.aistar.day04.onetoone;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2022/7/21 2:06 下午
 */
public class HusbandTest {
    public static void main(String[] args) {
        Wife wife = new Wife(1,"凤姐",null);
        Husband husband = new Husband(1,"刘亚飞",wife);
        //将husband绑定到wife中
        wife.setHusband(husband);

        System.out.println(husband);
        System.out.println(husband.getWife());
    }
}
